package com.tem.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 地理位置设置
 * </p>
 *
 * @author 腾木
 * @since 2023-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_region")
@ApiModel(value="SysRegion对象", description="地理位置设置")
public class SysRegion implements Serializable {

    private static final long serialVersionUID=2023121810190522L;

    @ApiModelProperty(value = "区域")
    @TableField(value = "sys_region_id")//, type = IdType.AUTO)
    private Long sysRegionId;

    @ApiModelProperty(value = "父id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "code代码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "简称")
    @TableField("short_name")
    private String shortName;

    @ApiModelProperty(value = "1-省份 2-城市 3-区县 4-街道")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "路径")
    @TableField("region_path")
    private String regionPath;

    @ApiModelProperty(value = "电话区号")
    @TableField("tel_code")
    private String telCode;

    @ApiModelProperty(value = "父节点")
    @TableField("parent_code")
    private String parentCode;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private String latitude;

    @ApiModelProperty(value = "排序-降序")
    @TableField("sort")
    private Integer sort;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
